// pages/account/namecheck/namecheck.js
var common = require('../../../common.js')
Page({
  data: {},
  onLoad: function () {
    var that = this;
    wx.getStorage({
      key: 'user',
      success: function (res) {
        common.cRequst({
          url: 'http://'+common.serveIp+'/user.php?c=dp_authentication&a=approveInfo',
          data: {
            "session_id": res.data.session_id,
            "type": "3",
            "version": "app"
          },
          method: "Post",
          success: function (data) {
            console.log(data.data);
            that.setData({
              certifyinfo:data.data[0]
            })
          }
        })
      }
    })
  }
})